import _http from '@/utils/http'

export default {
  login(params, loading) {
    return _http('post', {
      url: "/ums/mobile/login/account/app",
      apiName: '登录'
    }, params, loading)
  },

  loginSms(params, loading) {
    return _http('post', {
      url: "/ums/mobile/login/sms/app",
      apiName: '短信登录'
    }, params, loading)
  },

  getSmsCode(params, loading) {
    return _http('post', {
      url: "/ums/sms/getSmsCode",
      apiName: '获取短信验证码 - 无登陆'
    }, params, loading)
  },

  register(params, loading) {
    return _http('post', {
      url: "/ums/register/user/app",
      apiName: '注册'
    }, params, loading)
  },

  forget(params, loading) {
    return _http('post', {
      url: "/ums/register/forget",
      apiName: '忘记密码'
    }, params, loading)
  },
};
